package com.wx.javacode.exercise;

/**
 * ClassName:ExtendsExercise01
 * Package :com.wx.javacode.exercise
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/17 - 15:13
 */
public class ExtendsExercise01 {
    public static void main(String[] args) {
        B b = new B();
    }
}

class A {
    A() {
        System.out.println("a");
    }
}

class B extends A{
    B() {
        this("abc");
        System.out.println("b");
    }

    B(String name) {
        System.out.println("b name");
    }
}
